package com.edu.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * stu_info
 * @author 
 */
@Data
@TableName("stu_info")
public class StuInfo extends BaseEntity implements Serializable {

    /**
     * 学生id
     */
    private Long stuId;

    /**
     * 省
     */
    private Integer proId;

    /**
     * 市
     */
    private Integer cityId;

    /**
     * 区
     */
    private Integer areaId;

    /**
     * 详细地址
     */
    private String areaInfo;

    /**
     * 考生来源id
     */
    @TableField("source_info")
    private String sourceInfo;

    /**
     * 毕业日期
     */
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM")
    private Date graduationDate;

    private static final long serialVersionUID = 1L;
}